package com.dji.compose_learning.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.dji.compose_learning.net.GithubUser

class CoroutineSampleViewModel:ViewModel() {
    private val _userList = MutableLiveData<List<GithubUser?>>()
    val userList:LiveData<List<GithubUser?>>
        get() = _userList

    fun setUserList(list:List<GithubUser?>) {
        _userList.postValue(list)
    }
}